{if $bLoggedId}
	<script type="text/javascript" language="javascript">window.top.location.href='{url link='public.account'}'</script>
{/if}
{messages block='browse'}
<form method="post" action="{url link='admin.main.members'}">
<table cellspacing="0" cellpadding="0" width="100%" class="forumline">
<tr>
     <td class="row-header" colspan="3"><span>SEARCH</span></td>
</tr>
<tr>
	<td class="row1" style="text-align:right;">
		{language text='Mod_Account.username'}:
	</td>
	<td class="row1">
		{filter data=$aFilter.user size="30"}
	</td>
</tr>
<tr>
	<td class="row1" style="text-align:right;">
		{language text='Mod_Account.email'}:
	</td>
	<td class="row1">
		{filter data=$aFilter.email size="30"}
	</td>
</tr>
<tr>
	<td class="row1" style="text-align:right;">
		{language text='Mod_Account.ip'}:
	</td>
	<td class="row1">
		{filter data=$aFilter.login_ip size="30"}
	</td>
</tr>
<tr>
	<td class="row1" style="text-align:right;">
		{language text='Mod_Account.status'}:
	</td>
	<td class="row1">
		{filter data=$aFilter.status}
	</td>
</tr>
<tr>
	<td class="row1" style="text-align:right;">
		{language text='Mod_Account.membership_group'}:
	</td>
	<td class="row1">
		{filter data=$aFilter.type}
	</td>
</tr>
<tr>
	<td class="catBottom" colspan="2" style="text-align:center;">
		<input type="submit" name='act[mbrowse_show]' value="{language text='Mod_Account.search'}" />
		<input type="submit" name="act[mbrowse_reset]" value="{language text='Mod_Account.reset'}" />
	</td>
</tr>
</table>
</form>
<br />

<table cellspacing="0" cellpadding="0" width="100%" class="forumline">
<tr>
     <td class="row-header" colspan="3"><span>{language text="browse_members"}</span></td>
</tr>
{if $iCnt}
<tr>
     <td class="catBottom" colspan="3">
     <table style="width:100%;">
     <tr>
     	<td>{language text="viewing"} {$iFrom} - {$iTo} {language text="out_of"} {$iCnt} {language text="members"}</td>
     	<td style="text-align:right;">{include file="$sRootPath/_blocks/pager.html"}</td>
     </tr>
     </table>
     </td>
</tr>
<tr>
	<th>{language text='Mod_Account.user'}</th>
	<th>{language text='Mod_Account.details'}</th>
	<th>{language text='Mod_Account.actions'}</th>
</tr>
{/if}
{foreach from=$aItems item=aItem name=aitems key=iKey}
<tr>
	<td class="row1{if $iKey is odd}b{/if}" style="text-align:center;">
	<a target="_blank" href="{url link='public.user' name=$aItem.user}">
		<a target="_blank" href="{url link='public.user' name=$aItem.user}">{$aItem.user}</a>
    	<div style="padding-top:6px;">
    	<a target="_blank" href="{url link='public.user' name=$aItem.user}">
    		{Account::Avatar sUser=$aItem.user iSize=75 class="pic1" onmouseover="showInfo5('`$aItem.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
    	</a>
    	</div>
	</a>
 	</td><td class="row1{if $iKey is odd}b{/if}">
 	<table style="width:100%;">
	{if $bShowPoints}
	<tr>
		<td style="width:40%;text-align:right;font-size:8pt;" class="color"><b>{language text="activity_points"}:</b></td>
		<td style="width:60%;font-size:8pt;" class="color"> {$aItem.activity_points}</td>
	</tr>
	{/if}
	<tr>
		<td style="width:40%;text-align:right;font-size:8pt;" class="color"><b>{language text="space_usage"}:</b></td>
		<td style="width:60%;font-size:8pt;" class="color"> {$aItem.used_space|filesize} </td>
	</tr>
	<tr>
		<td style="width:40%;text-align:right;font-size:8pt;" class="color"><b>{language text="email"}:</b></td>
		<td style="width:60%;font-size:8pt;" class="color">  {$aItem.email} </td>
	</tr>
	<tr>
		<td style="width:40%;text-align:right;font-size:8pt;" class="color"><b>{language text="membership"}:</b></td>
		<td style="width:60%;font-size:8pt;" class="color"> <img src="{$aItem.membership_icon}" alt="" style="vertical-align:middle;" /> </td>
	</tr>
	<tr>
		<td style="width:40%;text-align:right;font-size:8pt;" class="color"><b>{language text="login_ip"}:</b></td>
		<td style="width:60%;font-size:8pt;" class="color"> <a href="http://www.dnsstuff.com/tools/whois.ch?ip={$aItem.login_ip}&amp;src=ShowIP" target="_blank">{$aItem.login_ip}</a></td>
	</tr>
	<tr>
		<td style="width:40%;text-align:right;font-size:8pt;" class="color"><b>{language text="status"}:</b></td>
		<td style="width:60%;font-size:8pt;" class="color">
		{if $aItem.is_banned == 1}{language text="banned"}{else}{if !$aItem.verify}{language text="active"}{else}{language text="pending"}
		{if $aItem.verify}(<a href="{url link='admin.main.members' verify='user' id=$aItem.id}">{language text="admin.verify.account"}</a>){/if}
		{/if}{/if}
		</td>
	</tr>
	<tr>
		<td style="width:40%;text-align:right;font-size:8pt;" class="color"><b>{language text="signup_ip"}:</b></td>
		<td style="width:60%;font-size:8pt;" class="color"> <a href="http://www.dnsstuff.com/tools/whois.ch?ip={$aItem.signup_ip}&amp;src=ShowIP" target="_blank">{$aItem.signup_ip}</a></td>
	</tr>
	</table>

	</td><td class="row1{if $iKey is odd}b{/if}" style="width:30%;">
	{if $aItem.can_change}
		<ul class="navlist">
          {if $aItem.verify}
			<li><a href="{url link='admin.main.members' verify='user' id=$aItem.id}"><img src="design/pic/admin/spacer.gif" alt="" width="8" height="8" class="sqr" /> {language text="admin.verify.account"}</a></li>
          {/if}
		{if $bCanDelete}
			<li><a href="{url link='current' changepic=$aItem.user}" onclick="return confirm('{language text="are_you_sure_that_you_wan"} ({language text="it_will_be_reset_to_the_d"})');"><img src="design/pic/admin/spacer.gif" alt="" width="8" height="8" class="sqr" /> {language text="delete_profile_pic"}</a></li>
		{/if}
		{if $aItem.type > 0 && $bCanLogin}
			<li><a href="{url link='admin.main.members' login=$aItem.id}"><img src="design/pic/admin/spacer.gif" alt="" width="8" height="8" class="sqr" /> {language text="login_as_this_user"}</a></li>
		{/if}
		{if $bCanDelete && $aItem.type > 0}
			<li><a href="{url link='current' delete=$aItem.id}" onclick="return confirm('{language text="do_you_really_want_to_del"}');"><img src="design/pic/admin/spacer.gif" alt="" width="8" height="8" class="sqr" /> {language text="delete_this_user"}</a></li>
		{/if}		
        	<li>
               <a href="javascript:void(0);" onclick="document.getElementById('mem_{$aItem.id}').style.display='';"><img src="design/pic/admin/spacer.gif" alt="" width="8" height="8" class="sqr" /> {language text="change_membership_status"}</a>
               <div style="padding:5px;display:none;" id="mem_{$aItem.id}">
                    <form method="post" action="{url link='current' user=$aItem.id}" style="margin:0px;">
                	<select name="membership">
                    {html_options options=$aMemberships selected=$aItem.type}
                    </select>
                    <div style="padding:5px;">
                         <input type="submit" name="act[membership]" value=" {language text="change_status"} " />
                    </div>
                    </form>
               </div>
          </li>          
	       	<li>
            <a href="javascript:void(0);" onclick="document.getElementById('ban_{$aItem.id}').style.display='';"><img src="design/pic/admin/spacer.gif" alt="" width="8" height="8" class="sqr" /> {language text="change_ban_status"}</a>
            <div style="padding:5px; display:none;" id="ban_{$aItem.id}">
                <form method="post" action="{url link='current' user=$aItem.id}" style="margin:0px;">
                <select name="ban">
                <option value="1"{if $aItem.is_banned == 1} selected="selected"{/if}>{language text="ban"}</option>
                <option value="0"{if $aItem.is_banned == 0} selected="selected"{/if}>{language text="unban"}</option>
                </select>
                <div style="padding:5px;">
                    <input type="submit" name="act[ban]" value=" {language text="change_ban_status"} " />
                </div>
                </form>
            </div>
        	</li>
        	{if getParam('count_user_points')}
        	<li>
        		<a href="javascript:void(0);" onclick="document.getElementById('bonus_{$aItem.id}').style.display='';"><img src="design/pic/admin/spacer.gif" alt="" width="8" height="8" class="sqr" /> {language text='Mod_Account.grant_bonus_points'}</a>
        		<div style="padding:5px; display:none;" id="bonus_{$aItem.id}">
        			<form method="post" action="{url link='current'}" style="margin:0px;">
        			<div><input type="hidden" name="bonus_user" value="{$aItem.user}" /></div>
        			<div>{language text='Mod_Account.points_to_grant'}: <input type="text" name="bonus" value="" size="10" />
                    	<input type="submit" value="{language text='Mod_Account.grant_bonus'}" />
                    </div>
                	</form>
        		</div>
        	</li>
        	{else}
        	<li>
        		<a href="javascript:void(0);" onclick="document.getElementById('points_{$aItem.id}').style.display='';"><img src="design/pic/admin/spacer.gif" alt="" width="8" height="8" class="sqr" /> {language text='Mod_Account.modify_points'}</a>
        		<div style="padding:5px; display:none;" id="points_{$aItem.id}">
        			<form method="post" action="{url link='current'}" style="margin:0px;">
        			<div><input type="hidden" name="points_user" value="{$aItem.user}" /></div>
        			<div>{language text='Mod_Account.points'}: <input type="text" name="points" value="{$aItem.activity_points}" size="10" />
                    	<input type="submit" value="{language text='Mod_Account.update'}" />
                    </div>
                	</form>
        		</div>
        	</li>
        	{/if}        	
        </ul>
        {/if}
 	</td>
 </tr>
{foreachelse}
<tr>
	<td class="row1" colspan="3">
	<div class="message_info">{language text="no_members_were_found"}</div>
	</td>
</tr>
{/foreach}
{if $iCnt}
<tr>
     <td class="catBottom" colspan="3">
     <table style="width:100%;">
     <tr>
     	<td>{language text="viewing"} {$iFrom} - {$iTo} {language text="out_of"} {$iCnt} {language text="members"}</td>
     	<td style="text-align:right;">{include file="$sRootPath/_blocks/pager.html"}</td>
     </tr>
     </table>
     </td>
</tr>
{/if}
</table>
<br />
<br />